home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Deutsche Edition 1
/
Deutsche Edition 1.iso
/
amok
/
081-090
/
amok81
/
m2
/
talkdemo
/
txt
/
talkerr.mod
< prev
next >
Wrap
Text File
|
1993-11-04
|
848b
|
48 lines
IMPLEMENTATION MODULE TalkErr;
FROM SYSTEM IMPORT ADR;
FROM Requester IMPORT OKRequest;
IMPORT N:Narrator;
TYPE
Str80Ptr=POINTER TO ARRAY[0..79] OF CHAR;
Errs=ARRAY[-28..-2] OF Str80Ptr;
VAR
errs:=Errs{
ADR("centPhonErr"),
ADR("dCentErr"),
ADR("volErr"),
ADR("freqErr"),
ADR("modeErr"),
ADR("sexErr"),
ADR("pitchErr"),
ADR("rateErr"),
ADR("phonErr"),
NIL,NIL,NIL,NIL,NIL,NIL,NIL,NIL,NIL,NIL,
ADR("expunged"),
ADR("noWrite"),
ADR("unimpl"),
ADR("cantAlloc"),
ADR("unitErr"),
ADR("makeBad"),
ADR("noAudLib"),
ADR("noMem")
};
PROCEDURE ShowErr(err:INTEGER);
VAR
t:Str80Ptr;
BEGIN
IF err=0 THEN RETURN END;
t:=NIL;
IF (err>=-28)&(err<=-2) THEN
t:=errs[err]
END;
IF t=NIL THEN
t:=ADR("unkown err");
END;
OKRequest(t^);
END ShowErr;
END TalkErr.